#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QUdpSocket>
#include <QDebug>
#include <QTimer>
#include <QHostAddress>
#include <QBuffer>
#include <QImage>
#include <QList>
#include "photo.h"
namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT


public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();

private:
    Ui::Dialog *ui;
    QUdpSocket *udp_socket;
    QTimer *timer;
    QList<QImage> images;
    int currentIndex;
    int type;

private slots:
    void ReceiveSlot();
    void TimeSlot();
    void OpenSlot();
    void PhotoSlot();
    void ShowPrierviousImage();
    void ShowNextImage();
    void SaveImage();
};
#endif // DIALOG_H
